﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PIMReportExport.aspx.cs" Inherits="TestDataReport_PIMReport_PIMReportExport" Title="无标题页" EnableEventValidation = "false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

    <div>
        <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
        <br />
        <br />
        &nbsp;&nbsp; &nbsp; &nbsp;
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width:20%; clear: left; float: left;">
                <%--    起始时间：<input type="text" runat="server" id="tbStart" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbStart"
                        ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终止时间：<input
                        type="text" runat="server" id="tbEnd" onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbEnd"
                        ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>--%>
                       产品的序列号: <asp:TextBox ID="txtProductSN" runat="server"></asp:TextBox>
                    <asp:Button ID="butSelect" runat="server" OnClick="butSelect_Click" 
                        Text="查  询" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div style="width:70%; float:right">
            <asp:Button ID="butImPort" runat="server" onclick="ImPort_Click" Text="数据导出" />
        </div>
        <br />
        <%--对GridView加AJAX异步刷新会对分页的返回有影响--%>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        
            <ContentTemplate>
                <br />
                <div style="clear: both;">
                    <br />
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductSN,RecordDate,ShiftClass,MOID,TestStep,ProductTypeName,ProductTypeID,PIMLimite,TestCout,A,B,C,D,FailAmount,PassRate,UserName"
                        EmptyDataText="没有相关数据！" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                        PageSize="80" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="ProductSN" HeaderText="产品编号" />
                            <asp:BoundField DataField="RecordDate" HeaderText="日期" DataFormatString="{0:g}"/>
                            <asp:BoundField DataField="ShiftClass"  HeaderText="班次" />
                            <asp:BoundField DataField="MOID" HeaderText="批次(MO)" />
                            <asp:BoundField DataField="TestStep" HeaderText="生产状态" />
                            <asp:BoundField DataField="ProductTypeName" HeaderText="天线类型" />
                            <asp:BoundField DataField="ProductTypeID" HeaderText="天线型号" />
                            <asp:BoundField DataField="PIMLimite" HeaderText="内控指标" />
                            <asp:BoundField DataField="TestCout" HeaderText="测试数" />
                            <asp:BoundField DataField="A" HeaderText="100以下" />
                            <asp:BoundField DataField="B" HeaderText="100-107" />
                            <asp:BoundField DataField="C" HeaderText="107-110" />
                            <asp:BoundField DataField="D" HeaderText="110以上" />
                            <asp:BoundField DataField="FailAmount" HeaderText="不合格数" />
                            <asp:BoundField DataField="PassRate" HeaderText="合格率" />
                            <asp:BoundField DataField="UserName" HeaderText="测试员" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>

